gdb -ex="set logging on debugOut.txt" -ex=r -ex=bt OneLife.exe